package com.ruoyi.bom.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 成本卡制作对象 tql_bom
 * 
 * @author ruoyi
 * @date 2023-12-31
 */
@Data
public class TqlBom  {

    /** BOM id */
    @TableId
    private Long id;

    /** dish_bom关联表主键 */
    @Excel(name = "dishId")
    private Long dishId;

    private Integer type;

    private Long stapId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String stapCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String stapName;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 定额 */
    @Excel(name = "定额")
    private BigDecimal quota;

    /** 成本 */
    @Excel(name = "成本")
    private BigDecimal cost;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private String revision;

    /** 物料类别 */
    @Excel(name = "物料类别")
    private String stapType;

    /** 规格 */
    @Excel(name = "规格")
    private String specification;

    /** 毛料 */
    @Excel(name = "毛料")
    private String woolen;

    /** 出净率 */
    @Excel(name = "出净率")
    private String netDeliveryRate;

    /** 净料 */
    @Excel(name = "净料")
    private String cleanMaterial;

    private Integer deptId;

    private Long shopId;

    private String deptCode;

    private String foodCode;

    @TableField(exist = false)
    private Integer flag;

    @TableField(exist = false)
    private String stapBaseUnit;

    @TableField(exist = false)
    private String stapAuxUnit;

    @TableField(exist = false)
    private BigDecimal initPrice;


    @TableField(exist = false)
    private TqlMaterialTransUnit mt;


}
